makes the function continous